<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var score=prompt("请输入学生成绩：",80);
        var grade=score>=80?"该学生成绩为：A":"该学生成绩为：B";
        var bol = alert(grade);
    </script>
</head>
<body>
    
</body>
</html>